package com.diligent.cloud.sfc.resources;

import com.canny.commons.model.ListResult;
import com.diligent.cloud.primary.data.model.Result;
import com.diligent.cloud.workorder.model.DpsListParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/sfc/dps")
public interface WoDpsResource {
    @PostMapping
    @ApiOperation(value = "工单/查询Dps工单列表", notes = "工单/查询Dps工单列表", tags = {"工单"})
    ResponseEntity<ListResult> selectDpsList(@RequestBody DpsListParams dpsListParams);

    @PostMapping("/{dpsId}")
    ResponseEntity<Result> updateDps(@PathVariable("dpsId")Long dpsId);
}
